package JAVACORE_TRAINING.OOPs.INHERISTANCE;

public class LopDongVat {
    // 1. Datafield
    private boolean isChan;
    private boolean isMat;

    // 2. Constructors - Hàm khởi dựng
    public LopDongVat() {
        isChan = true;
        isMat = true;
    }

    public LopDongVat(boolean isChan, boolean isMat) {
        // <Biến toàn cục> = <tham số>;
        this.isChan = isChan;
        this.isMat = isMat;
    }

    /**
     * @return the isChan
     */
    public boolean isChan() {
        return isChan;
    }

    /**
     * @param isChan the isChan to set
     */
    public void setChan(boolean isChan) {
        this.isChan = isChan;
    }

    /**
     * @return the isMat
     */
    public boolean isMat() {
        return isMat;
    }

    /**
     * @param isMat the isMat to set
     */
    public void setMat(boolean isMat) {
        this.isMat = isMat;
    }

    public int TocDoChay() {
        return 100;
    }

    void PrintInfo() {
    }
}
